<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="../../resources/run-after-layout-and-paint.js"></script>
<script src="resources/selection.js"></script>
<p>Passes if there are no overpainted selection highlights.</p>
<span id="demo" dir="rtl" style="font-size: 400%;">
    متن:text
</span>
<script>
selectRangeAfterLayoutAndPaint(demo, 0, demo, 1);
</script>
